package top.noteday.provider.value;

import java.util.List;
import java.util.Date;
import entity.Page;
import entity.result.EntityResult;
import entity.result.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import entity.value.*;

// TODO 修改 path
@FeignClient(value = "kalimdor-apiImpl", path = "/backstage/value", contextId="valueService")
public interface ValueService {

    /**
     * 查询一个
     */
    @PostMapping(value = "/selectById")
    Value selectById(@RequestParam("id") Integer id);

    /**
     * 保存数据
     */
    @PostMapping(value = "/saveValues")
    int saveValues(@RequestBody Value value);

    /**
     * 获取详情
     */
    @PostMapping(value = "/getFormValue")
    EntityResult<ValueDto> getFormValue(@RequestBody ValueVo vo);

    /**
     * 分页查询
     */
    /*
    @PostMapping(value = "/selectValue")
    PageResult<ValueDto> selectValue(@RequestBody ValueVo valueVo);
    */
}
